package lava.rt.persistence.sql;

import java.io.Serializable;
import java.util.List;

public class PagingResult<E> implements Serializable {

	   
	private static final long serialVersionUID = 1L;

	private int total;
	   
	   private List<E> rows;

	public PagingResult(List<E> rows) {
			super();
			this.total = rows.size();
			this.rows = rows;
	}
	   
	public PagingResult(int total, List<E> rows) {
		super();
		this.total = total;
		this.rows = rows;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<E> getRows() {
		return rows;
	}

	public void setRows(List<E> rows) {
		this.rows = rows;
	}
	
	
	   
}
